<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静态文件引入</title>

    <script src="{{url_for('static',filename='js/test.js')}}"></script>
    <link href="{{url_for('static',filename='css/test.css')}}"  rel="stylesheet"></link>
</head>
<body>
    <h1>静态文件引入</h1>

    <!-- 不推荐把路径写死 -->
    <img src="/static2/imgs/img1.jpg" alt="">

    <!-- 此时的 static 被我们设置成了 static2 -->
    <img src="{{url_for('static',filename='imgs/img1.jpg')}}" alt="" srcset="">
</body>
</html>